<?php
// +----------------------------------------------------------------------
// | SentCMS [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.tensent.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: molong <molong@tensent.cn> <http://www.tensent.cn>
// +----------------------------------------------------------------------

namespace Home\Controller;

class ContentController extends \Common\Controller\FrontController {

	public function index(){
		$id = I('id','','trim,intval');
		$name = I('name','','trim');

		if ($name) {
			$teamplate = 'Content/index/'.$name;
		}else{
			$teamplate = '';
		}
		$this->display($teamplate);
	}

	public function lists(){
		$id = I('id','','trim,intval');

		if (!$id) {
			$this->error("无此栏目！");
		}

		$data = array(
			'list'    => $list,
			'page'    => $page
		);
		$this->assign($data);
		$this->display($teamplate);
	}

	public function detail(){
		$name = I('name','','trim');

		if ($name) {
			$teamplate = 'Content/detail/'.$name;
		}else{
			$teamplate = '';
		}
		$this->display($teamplate);	
	}
}